package com.aptemo.webetek.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class DeletePickEvent
		extends GwtEvent<DeletePickHandler>
{

	public static GwtEvent.Type<DeletePickHandler>	TYPE	= new GwtEvent.Type<DeletePickHandler>();

	private String									id;

	public DeletePickEvent(String id)
	{
		this.id = id;
	}

	@Override
	protected void dispatch(DeletePickHandler handler)
	{
		handler.onPickDeleted(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<DeletePickHandler> getAssociatedType()
	{
		return TYPE;
	}

	public String getId()
	{
		return id;
	}

}
